package cn.wlbw.utils;


import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class LayuiPage {
	public static Map<String, Object> resultData(Integer code, String msg, Integer count, List<?>  data) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", code);
		map.put("msg", msg);
		map.put("count",count);
		map.put("data", data);
		return map;
	}
	public static Map<String, Object> resultData(Integer code, List<?> data) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", code);
		map.put("data", data);
		return map;
	}
	public static Map<String, Object> resultData(Integer code, String msg, Map mapData) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", code);
		map.put("msg", msg);
		map.put("data", mapData);
		return map;
	}
	public static Map<String, Object> resultData(Integer code, String msg, Integer count) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", code);
		map.put("msg", msg);
		map.put("count",count);
		return map;
	}
	public static Map<String, Object> resultData(Integer code) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", code);
		return map;
	}
	public static Map<String, Object> resultData(Integer code, String msg) {
		Map<String, Object> map = new HashMap<>();
		map.put("code", code);
		map.put("msg", msg);
		return map;
	}
}
